<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取当前 magic_quotes_gpc 的配置选项设置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.get-loaded-extensions.html">« get_loaded_extensions</a></li>
      <li style="float: right;"><a href="function.get-magic-quotes-runtime.html">get_magic_quotes_runtime »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.info.html">PHP 选项/信息 函数</a></li>
    <li>获取当前 magic_quotes_gpc 的配置选项设置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.get-magic-quotes-gpc" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_magic_quotes_gpc</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">get_magic_quotes_gpc</span> &mdash; <span class="dc-title">获取当前 magic_quotes_gpc 的配置选项设置</span></p>

 </div>

 <div id="function.get-magic-quotes-gpc-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 7.4.0
起<em class="emphasis">弃用</em>，自 PHP 8.0.0 起<em class="emphasis">移除</em>。强烈建议不要依赖本函数。</p></div>
 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-magic-quotes-gpc-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_magic_quotes_gpc</strong></span>(): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
    始终返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-magic-quotes-gpc-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.get-magic-quotes-gpc-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   始终返回 <strong><code>false</code></strong>。
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.get-magic-quotes-gpc-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>7.4.0</td>
       <td>
           该函数已被废弃。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.get-magic-quotes-gpc-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.addslashes.html" class="function" rel="rdfs-seeAlso">addslashes()</a> - 使用反斜线引用字符串</span></li>
    <li class="member"><span class="function"><a href="function.stripslashes.html" class="function" rel="rdfs-seeAlso">stripslashes()</a> - 反引用一个引用字符串</span></li>
    <li class="member"><span class="function"><a href="function.get-magic-quotes-runtime.html" class="function" rel="rdfs-seeAlso">get_magic_quotes_runtime()</a> - 获取当前 magic_quotes_runtime 配置选项的激活状态</span></li>
    <li class="member"><span class="function"><a href="function.ini-get.html" class="function" rel="rdfs-seeAlso">ini_get()</a> - 获取一个配置选项的值</span></li>
   </ul>
  </p>
 </div>

 
</div></div></div></body></html>